<div class="row-fluid bg-post-blog">
    <div class="span6 box-content-post-blog">
        <h3 class="tieude-blog"><?php echo lang('sanphamcua');?> <?php echo $user['fullname'];?></h3>
        <div class="clear-main"></div>
        <?php foreach($product as $value){?>
            <div class="row-fluid">
                <div class="span4">
                    <a href="<?php echo DOMAIN.$value['Product']['link'];?>.html" title="<?php echo $value['Product']['name'];?>">
                        <img src="<?php echo DOMAIN;?>img/w220/h166/<?php echo $value['Product']['images'];?>" title="<?php echo $value['Product']['name'];?>" alt="<?php echo $value['Product']['name'];?>"/>
                    </a>
                </div>
                <div class="span8 box-content-post">
                    <a href="<?php echo DOMAIN.$value['Product']['link'];?>.html" title="<?php echo $value['Product']['name'];?>">
                        <b><?php echo shortDesc($value['Product']['name'], 35);?></b>
                    </a>
                    <div class="row-fluid">
                        <?php /*
                        <div class="span3">
                            <a href="<?php echo DOMAIN.'user/blog/'.$user['id'];?>" title="<?php echo $user['fullname'];?>">
                                <img src="<?php echo DOMAIN;?>img/w72/h65/<?php echo $user['images'];?>" title="<?php echo $user['fullname'];?>" alt="<?php echo $user['fullname'];?>"/>
                            </a>
                        </div>
                        */?>
                        <div class="span9">
                            <div class="user-post-date">
                                <?php /* ?><a href="#" type="User post"><?php echo $user['fullname'];?></a> | Date <?php echo date('m-Y', strtotime($user['modified'])); ?>*/?>
                            	<?php
                                date_default_timezone_set('Asia/Ho_Chi_Minh');
                                $date = time() + 4*60;
                                $tmp = date('w',$date);
                                if($tmp==0) $w = 'CN';
                                else if($tmp==1) $w = 'Thứ 2';
                                else if($tmp==2) $w = 'Thứ 3';
                                else if($tmp==3) $w = 'Thứ 4';
                                else if($tmp==4) $w = 'Thứ 5';
                                else if($tmp==5) $w = 'Thứ 6';
                                else if($tmp==6) $w = 'Thứ 7';
                                echo $w.' Ngày ';
                                echo date('d-m-y h:i',$date);?>(GMT+7)
                            </div>
                            <div class="view-cmt-like span12">
                                <div class="span3">Xem <div>299 <i class="fa fa-eye"></i></div></div>
                                <div class="span3">Thích <div>1k <i class="fa fa-hand-o-right"></i></div></div>
                                <div class="span3">B.luận <div>999 <i class="fa fa-comments-o"></i></div></div>
                            </div>
                            <div class="nghanh-nghe-blog"><?php echo lang('nghanhnghe');?>: <?php echo $user['nghanhnghe'];?></div>
                        </div>
                    </div>
                    <?php /*<div class="xep-hang rate"><?php $_SESSION['point'] = $user['point']; echo $this->element('user-star');?></div>*/?>
                    <?php if(isset($user_login['id'])&&$user_login['id']==$user['id']){?>
                    <div class="btn-group pull-right">
                      <a class="btn dropdown-toggle btn-group" style="background: #d1e0f6;" data-toggle="dropdown" href="#">
                        <i class="fa fa-angle-double-down"></i>
                      </a>
                      <ul class="dropdown-menu dropdown-menu-blog">
                        <li>
                            <a href="<?php echo DOMAIN;?>product/edit/<?php echo $value['Product']['id'];?>"><i class="fa fa-cog"></i> <?php echo lang('sua_chua');?></a>
                        </li>
                        <li>
                            <a href="<?php echo DOMAIN;?>product/delete/<?php echo $value['Product']['id'];?>"><i class="fa fa-times-circle"></i> <?php echo lang('xoa');?></a>
                        </li>
                        <li></li>
                      </ul>
                    </div>
                    <?php }?>
                </div>
            </div>
            <div class="row-fluid">
                <div class="gioi-thieu-blog-post">Giới thiệu dự án</div>
                <div class="shortdes-post-blog">
                    <?php echo shortDesc($value['Product']['name'], 200);?>
                </div>
            </div>
            <div class="clear-content"></div>
        <?php }?>
    </div>
    <div class="span6 box-content-post-blog">
        <h3 class="tieude-blog"><?php echo lang('sptoitheodoi');?></h3>
        <div class="clear-main"></div>
        <div class="row-fluid">
            <div class="ct_tt">Đang cập nhật bài viết !</div>
        </div>
    </div>
</div>